import { http } from '../utils/http';
import type { LoginResult } from '@/types/member';
//登录
type LoginParams = {
  code: string;
  encryptedData: string;
  iv: string;
};
export const postLoginWxMinAPI = (data: LoginParams) => {
  return http({
    method: 'POST',
    url: '/login/wxMin',
    data,
  });
};

//登录_内测版 模拟手机号码
export const postLoginWxMinSimpleAPI = (phoneNumber: string) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/login/wxMin/simple',
    data: {
      phoneNumber,
    },
  });
};
